package com.itheima.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @param
 * @return
 */
@Component
@Aspect
public class logAop {
    @Pointcut("execution(* com.itheima.controller.*.*(..))")
    public void pid(){

    }
    @Before("pid()")
    public void before(){
        System.out.println("logAop...");
    }
    @After("pid()")
    public void after(){
        System.out.println("logAop...");
    }

}
